<script setup lang="ts">
import {useRoute} from "vue-router";

import {pushTo} from "@/router";

const route = useRoute()

</script>

<template>
  <x-card class="my-card">
    <h1>404:找不到页面{{ route?.path }}</h1>
    <el-button @click="pushTo('/')">去首页</el-button>
  </x-card>
</template>

<style scoped lang="scss">
.my-card{
  min-height: 100%;
}
</style>